﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Saber.Plugin;

namespace Saber.Plugin.RemoveUSB
{

    //https://github.com/allanpk716/RemoveUSB
    // GPL-2.0 license

    public class Main : IPlugin
    {

        private static PluginMetadata metadata;

        static Main()
        {
            metadata = new PluginMetadata();
            metadata.ID = "164401726DC3442A91FE555819832A79";
            metadata.Name = "Remove USB";
            metadata.Description = "Remove USB";
            metadata.ActionKeyword = "reu";
            metadata.IcoPath = "Images\\usb_stick.png";
        }

        private static ReuSet reuSet = new ReuSet();
        public List<Result> Query(Query query)
        {
            return reuSet.Query(query.Search);
        }

        public void Init(PluginInitContext context)
        {
            reuSet.Load(context.CurrentPluginMetadata.PluginDirectory);
        }

        public PluginMetadata Metadata()
        {
            return metadata;
        }
    }
}
